package com.source.multithread.controller;

import com.sun.prism.shader.Solid_TextureYV12_AlphaTest_Loader;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.ContextStartedEvent;
import org.springframework.stereotype.Component;

/**
 * @Author wengqy
 * @Date 2021/1/8
 *ContextRefreshedEvent
 * ContextStartedEvent
 * ContextStoppedEvent
 * ContextClosedEvent
 * RequestHandledEvent
 */
@Component
public class ApplicationListenerDemo2 implements ApplicationListener<ContextStartedEvent> {

    @Override
    public void onApplicationEvent(ContextStartedEvent contextStartedEvent) {
        System.out.println("*********************************ContextStartedEvent*************************");
    }
}
